﻿<Window x:Class="MDSAdministration.DeploymentWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Deployment"
        Height="488"
        Width="459"
        Loaded="Window_Loaded" Closing="Window_Closing">
    <Window.Resources>
        <Style x:Key="SliderStyle"
               TargetType="GridSplitter">
            <Setter Property="Background"
                    Value="#9B6495ED" />
        </Style>
    </Window.Resources>
    <Grid>
        <TabControl>
            <TabItem Header="Deploy"
                     IsSelected="True"
                     Name="tbiDeploy">
                <Grid>
                    <Label Content="Server:"
                           Name="label1"
                           Height="28"
                           Margin="55,0,0,0"
                           HorizontalAlignment="Left"
                           Width="244"
                           VerticalAlignment="Top" />
                    <Label Content="Database:"
                           Height="28"
                           Margin="39,24,0,0"
                           Name="label2"
                           HorizontalAlignment="Left"
                           Width="260"
                           VerticalAlignment="Top" />
                    <Label Content="Model:"
                           Height="28"
                           Margin="55,48,0,0"
                           Name="label3"
                           VerticalAlignment="Top"
                           HorizontalAlignment="Left"
                           Width="245" />
                    <Label Content="ModelVersion:"
                           Height="28"
                           Margin="15,72,0,0"
                           Name="label4"
                           HorizontalAlignment="Left"
                           Width="284"
                           VerticalAlignment="Top" />
                    <Label Content="Label"
                           Height="28"
                           HorizontalAlignment="Left"
                           Margin="103,1,0,0"
                           Name="lblServerName"
                           VerticalAlignment="Top" />
                    <TextBlock
                           Height="19"
                           HorizontalAlignment="Left"
                           Margin="108,29,0,0"
                           Name="tbkDatabase"
                           VerticalAlignment="Top" Width="102" Text="Label" />
                    <Label Content="Label"
                           Height="28"
                           HorizontalAlignment="Left"
                           Margin="103,48,0,0"
                           Name="lblModel"
                           VerticalAlignment="Top" />
                    <Label Content="Label"
                           Height="28"
                           HorizontalAlignment="Left"
                           Margin="103,72,0,0"
                           Name="lblModelVersion"
                           VerticalAlignment="Top" />
                    <Button Content="Deploy"
                            Margin="0,0,6,6"
                            Name="btnDeploy"
                            Click="btnDeploy_Click"
                            Height="23"
                            VerticalAlignment="Bottom"
                            HorizontalAlignment="Right"
                            Width="75" />
                    <Button Content="Save"
                            Margin="0,0,91,6"
                           
                            Name="btnSave"
                            Click="btnSave_Click"
                            Height="23"
                            VerticalAlignment="Bottom"
                            HorizontalAlignment="Right"
                            Width="75" ToolTip="Save script to file" />
                    <Label Content="Current User:"
                           Height="28"
                           HorizontalAlignment="Left"
                           Margin="22,92,0,0"
                           Name="label5"
                           VerticalAlignment="Top"
                           Width="284" />
                    <TextBox Height="23"
                             HorizontalAlignment="Left"
                             Margin="104,94,0,0"
                             Name="txtCurrentUser"
                             VerticalAlignment="Top"
                             Width="196" />
                    <TabControl Margin="0,125,0,40">
                        <TabItem Header="Load">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="120" />
                                    <ColumnDefinition Width="5" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>
                                <Grid Grid.Column="0">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="100" />
                                        <RowDefinition Height="5" />
                                        <RowDefinition />
                                    </Grid.RowDefinitions>
                                    <Grid Grid.Row="0">
                                        <Label Content="Steps" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top"/>
                                        <ListBox x:Name="lbxLoadSteps" Margin="0,25,0,0" SelectionChanged="lbxLoadSteps_SelectionChanged"></ListBox>
                                    </Grid>
                                    <GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{StaticResource SliderStyle}" />
                                    <Grid Grid.Row="2">
                                        <Label Content="Servers" HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Top"/>
                                        <ListBox x:Name="lbxLoadServers" Margin="0,25,0,0"></ListBox>
                                    </Grid>
                                </Grid>
                                <GridSplitter Grid.Column="1"
                                                              HorizontalAlignment="Stretch"
                                                              VerticalAlignment="Stretch"
                                                              Style="{StaticResource SliderStyle}" />
                                <Grid Grid.Column="2">
                                    <TextBox Name="tbLoadQuery"
                                         VerticalScrollBarVisibility="Auto" IsReadOnly="True" />
                                </Grid>
                                
                            </Grid>
                        </TabItem>
                    </TabControl>
                </Grid>
            </TabItem>
            <TabItem Header="Deployment Progress"
                     IsSelected="False"
                     IsEnabled="False"
                     Name="tbiDeployProg">
                <Grid>
                    <Button Content="Ok"
                            Margin="0,0,6,6"
                            Name="btnOk"
                            Click="btnOk_Click"
                            Height="23"
                            VerticalAlignment="Bottom"
                            HorizontalAlignment="Right"
                            Width="75" />
                    <Button Content="Result"
                            Margin="0,0,90,6"
                            Name="btnResult"
                            Click="btnResult_Click"
                            Height="23"
                            VerticalAlignment="Bottom"
                            HorizontalAlignment="Right"
                            Width="75" />
                    <Button Content="Cancel"
                            Margin="0,0,174,6"
                            Name="btnCancel"
                            Click="btnCancel_Click"
                            Height="23"
                            VerticalAlignment="Bottom"
                            HorizontalAlignment="Right"
                            Width="75" />
                    <TextBox Margin="6,10,6,35"
                             x:Name="txtResult"
                             VerticalScrollBarVisibility="Auto" IsReadOnly="True" />
                </Grid>
            </TabItem>

        </TabControl>
    </Grid>
</Window>
